package com.example.xiaomi.Model.entity;

import java.math.BigDecimal;

public class orderEntity {
    int oid;
    String cid;
    int quantity;
    BigDecimal osum;
    String otime;
    String odeta;
    String method;
    String ostate;

    public String toString() {
        return "[" + oid +
                "," + cid +
                "," + quantity +
                "," + osum +
                "," + otime +
                "," + odeta +
                "," + method +
                "," + ostate +
                ']';
    }

    public orderEntity(int oid, String cid, int quantity, BigDecimal osum, String otime, String odeta, String method, String ostate) {
        this.oid = oid;
        this.cid = cid;
        this.quantity = quantity;
        this.osum = osum;
        this.otime = otime;
        this.odeta = odeta;
        this.method = method;
        this.ostate = ostate;
    }



    public int getOid() {
        return oid;
    }

    public void setOid(int oid) {
        this.oid = oid;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public BigDecimal getOsum() {
        return osum;
    }

    public void setOsum(BigDecimal osum) {
        this.osum = osum;
    }

    public String getOtime() {
        return otime;
    }

    public void setOtime(String otime) {
        this.otime = otime;
    }

    public String getOdeta() {
        return odeta;
    }

    public void setOdeta(String odeta) {
        this.odeta = odeta;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getOstate() {
        return ostate;
    }

    public void setOstate(String ostate) {
        this.ostate = ostate;
    }
}
